/*
 * File:   MetricsVectorTTTest.cpp
 * Author: guilhermeg
 *
 * Created on Nov 8, 2013, 4:30:19 PM
 */

#include "MetricsVectorTTTest.h"


CPPUNIT_TEST_SUITE_REGISTRATION(MetricsVectorTTTest);

MetricsVectorTTTest::MetricsVectorTTTest() {
}

MetricsVectorTTTest::~MetricsVectorTTTest() {
}

void MetricsVectorTTTest::setUp() {
}

void MetricsVectorTTTest::tearDown() {
}

void MetricsVectorTTTest::testMetricsVectorTT() {
    string uAnsPath = "../books/anuario1916pb/metadados/respostaUsuarioTT/test.txt";
    string sOutputAns = "../books/anuario1916pb/metadados/saida/test.txt";
    MetricsVectorTT metricsVectorTT(uAnsPath, sOutputAns);
    
    if (metricsVectorTT.getTP() != 4) CPPUNIT_ASSERT(false);
    if(metricsVectorTT.getFP() != 0) CPPUNIT_ASSERT(false);
    if(metricsVectorTT.getNumCellsSoft() != 4) CPPUNIT_ASSERT(false);
    if(metricsVectorTT.getNumCellsUser() != 4) CPPUNIT_ASSERT(true);
}

